﻿using System.Web;
using System.Web.Mvc;

namespace Calico.Client.Filters
{
	/// <summary>
	/// Attribute for identifying an authenticated user
	/// </summary>
	public class AuthenticatedUserAttribute : AuthorizeAttribute
	{
		/// <summary>
		/// Calls when an action is being authorized.
		/// </summary>
		/// <remarks>
		/// Override: TODO
		/// </remarks>
		/// <param name="httpContext"></param>
		/// <returns>bool</returns>
		protected override bool AuthorizeCore(HttpContextBase httpContext)
		{
			// TODO
			return true;
		}

		/// <summary>
		/// Handle an unauthorized user
		/// </summary>
		/// <param name="filterContext"></param>
		protected override void HandleUnauthorizedRequest(AuthorizationContext filterContext)
		{
			// TODO
		}
	}
}